package com.lostsheep.java.design.mode.builder;

/**
 * <b><code>LenovoBuilder</code></b>
 * <p/>
 * Description
 * <p/>
 * <b>Creation Time:</b> 2021/3/21.
 *
 * @author dengzhen
 * @since java-design-mode
 */
public class LenovoLaptopBuilder extends Builder {

    private Laptop laptop = new Laptop();

    @Override
    public void cpu(String cpu) {
        laptop.setCpu(cpu);
    }

    @Override
    public void motherboard(String motherboard) {
        laptop.setMotherboard(motherboard);
    }

    @Override
    public void graphic(String graphic) {
        laptop.setGraphic(graphic);
    }

    @Override
    public void os() {
        laptop.setOs("Windows 10");
    }

    @Override
    public Laptop build() {
        return laptop;
    }
}
